package com.czh.myprinter;

/**
 * @program: printer
 * @description:
 * @author: czh
 * @create: 2024-07-26 17:05
 **/

public class TokenResponse {

    private int error;
    private String errorDescription;
    private long timestamp;
    private Body body;

    public static class Body {
        private String clientId;
        private String accessToken;
        private String refreshToken;
        private String machineCode;
        private long expiresIn;
        private long refreshExpiresIn;
        private String scope;

        // Getters and setters for all fields
        public String getClientId() { return clientId; }
        public void setClientId(String clientId) { this.clientId = clientId; }

        public String getAccessToken() { return accessToken; }
        public void setAccessToken(String accessToken) { this.accessToken = accessToken; }

        public String getRefreshToken() { return refreshToken; }
        public void setRefreshToken(String refreshToken) { this.refreshToken = refreshToken; }

        public String getMachineCode() { return machineCode; }
        public void setMachineCode(String machineCode) { this.machineCode = machineCode; }

        public long getExpiresIn() { return expiresIn; }
        public void setExpiresIn(long expiresIn) { this.expiresIn = expiresIn; }

        public long getRefreshExpiresIn() { return refreshExpiresIn; }
        public void setRefreshExpiresIn(long refreshExpiresIn) { this.refreshExpiresIn = refreshExpiresIn; }

        public String getScope() { return scope; }
        public void setScope(String scope) { this.scope = scope; }
    }

    // Getters and setters for all fields
    public int getError() { return error; }
    public void setError(int error) { this.error = error; }

    public String getErrorDescription() { return errorDescription; }
    public void setErrorDescription(String errorDescription) { this.errorDescription = errorDescription; }

    public long getTimestamp() { return timestamp; }
    public void setTimestamp(long timestamp) { this.timestamp = timestamp; }

    public Body getBody() { return body; }
    public void setBody(Body body) { this.body = body; }
}
